package com.yuw.control;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class CommonControl {
    @RequestMapping("/")
    public String hello() {
        return "HelloWorld!";
    }

    @RequestMapping("/bye")
    public String bye()
    {
        return "Good Bye!";
    }

    @RequestMapping("/HiGit")
    public  String hi()
    {
        return  "Hi Git!";
    }

    @RequestMapping("/bunny")
    public String bunny() {
        return "bunny!";
    }
    @GetMapping("/test")
    public String test(){
        return "test";
    }

    @RequestMapping("/Who")
    public  String who()
    {
        return  "Who are You!";
    }

    @RequestMapping("/HelloWorld")
    public  String HelloWorld()
    {
        return  "HelloWorld!";
    }

    @RequestMapping("/HelloWorld2")
    public  String HelloWorld2()
    {
        return  "HelloWorld2!";
    }
}
